﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Session.Admin" %>
<asp:Literal ID="lLCount" Text="15" runat="server" Visible="false"/>
<div style="width:100%; text-align:left">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenu3"></div>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("Dispute Session") %></h1>
							</div>
						</div>
					</div>
					<div><a href="/session/admin.htm">等待处理的老师还没辩解的</a>  <a href="/session/admin.htm?s=3">等待处理的老师有辩解</a>   <a href="/session/admin.htm?s=2">已经处理过的</a>   </div>
				</div>
				<div class="Center9001n">
					<table><tr><td>学生</td><td>老师</td><td>课时</td><td>课时时间</td><td>价格</td><td>申请时间</td><td>投诉记录</td><td>教学记录</td><td>状态</td></tr>
					<asp:Repeater ID="repsess" runat="server">
					<ItemTemplate>
					<tr><td><a href="<%=WWWHost %>/<%#Eval("SNO") %>.htm"> <%#HttpUtility.HtmlEncode(Eval("SNickname").ToString()) %></a></td>
					<td><a href="<%=WWWHost %>/<%#Eval("TNO") %>.htm"> <%#HttpUtility.HtmlEncode(Eval("TNickname").ToString()) %></a></td>
					<td><a href="#">Session <%#Eval("SessionID")%></a></td><td><%#BLF.WWW_User.Teach.Teach.ConvertTime(Eval("StartDate").ToString(), Eval("StartTime").ToString(), "480").ToString("yyyy-M-d\nHH:mm").Replace("\n", "<br/>")%>-<%#BLF.WWW_User.Teach.Teach.ConvertTime(Eval("StartDate").ToString(), Eval("StartTime").ToString(),"480").AddMinutes((double)((short)Eval("LongTime")*30)).ToString("HH:mm")%></td>
					<td>€ <%#((decimal)Eval("Price")).ToString("N0")%></td>
					<td><%#((DateTime)Eval("HappenDate")).ToString("yyyy-M-d\nhh:mm").Replace("\n", "<br/>")%></td>
					<td><a href="#" onclick='GetDispute("<%#(long)Eval("SessionID") %>")'>投诉记录</a></td><td><%#Eval("State").ToString() == "H" ? (Eval("TToSDesc").ToString() != "" ? "<a href=\"" + Eval("TToSDesc").ToString() + "\" title=\"" + Eval("TToSDesc").ToString() + "\" >查看记录</a>" : "<a href=\"#\" onclick=\"addurl(" + (long)Eval("SessionID") + ")\">增加记录</a>") : ""%><%#Eval("State").ToString() == "C" ? (Eval("TToSDesc").ToString() == "" ? "<a href=\"#\" onclick=\"addurl(" + (long)Eval("SessionID") + ")\">增加记录</a>" : "<a href=\"" + Eval("TToSDesc").ToString() + "\" title=\"" + Eval("TToSDesc").ToString() + "\" >查看记录</a>") : ""%><%#Eval("State").ToString() == "D" || Eval("State").ToString() == "E" ? (Eval("TToSDesc").ToString() == "" ? "无记录" : "<a href=\"" + Eval("TToSDesc").ToString() + "\" title=\"" + Eval("TToSDesc").ToString() + "\" >查看记录</a>") : ""%></td>
					<td><span title="<%#Eval("SToTDesc") %>"><%#Eval("State").ToString() == "C" || Eval("State").ToString() == "H" ? "<a href=\"#\" onclick=\"disposal()\">争议未裁定</a>" : ""%><%#Eval("State").ToString() == "D" ? "退款给学生" : ""%><%#Eval("State").ToString() == "E" ? "付款给老师" : ""%></span></td></tr>
					</ItemTemplate>
					</asp:Repeater>   
					</table>
				<div><%=CreatePageNav(RecordCount, int.Parse(lLCount.Text), pageIndex, "",
                                    string.Format("<span class='page_none grey10'><a href='{0}/Session/admin.htm?p=$I$&s={2}'>{1}</a></span>&nbsp;", WWWHost, HttpUtility.UrlEncode(GetText("Prev")),s),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/Session/admin.htm?p=$I$&s={2}'>{1}</a></span>&nbsp;", WWWHost,HttpUtility.UrlEncode(GetText("Next")),s),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", pageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/Session/admin.htm?p=$I$&s={1}'>$I$</a></span>&nbsp;",WWWHost,s)
								)%>	</div>
				</div>
				
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F" ></div>
	</div>
</div>

